package com.bawei.module_mine.model.api

import com.bawei.lib_net.entity.ResponseEntity
import com.bawei.module_mine.model.entity.AddAddressRequest
import com.bawei.module_mine.model.entity.AddressEntity
import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.POST

interface AddressApi {
    @POST("/mall/userAddress/list")
    suspend fun getAddressList(): ResponseEntity<List<AddressEntity>>

    @POST("/mall/userAddress/add")
    suspend fun addAddress(@Body body: AddAddressRequest): ResponseEntity<Any>

    @POST("/mall/userAddress/update")
    suspend fun updateAddress(@Body body: Map<String, @JvmSuppressWildcards Any?>): ResponseEntity<Any>

    @DELETE("/mall/userAddress/delete/{addressId}")
    suspend fun deleteAddress(@retrofit2.http.Path("addressId") addressId: Long): ResponseEntity<Any>
} 